<!--IKEDITOR编辑器-->
<style>
.item-thumb-list{ padding-left:110px}
.thumblst { width:580px;min-width:580px;}
.thumblst .details textarea { width:90%; }
.thumblst { min-height: 140px; min-width: 600px; border: 1px solid #d3d3d3; background:#f0f0f0; padding: 10px 12px; margin: 3px 0 7px }
.thumblst .thumb { float: left; width: 160px; overflow:hidden;}
.thumblst .thumb img { max-width: 130px; _width: 130px }
.thumblst .thumb .pl { padding:0px; margin-bottom:5px; }
.thumblst .details { float: right; width: 419px;}
.thumblst .details .rr {float: right;}
.thumblst .details p{ margin-bottom:5px;}
.thumblst .details textarea{ width: 410px; height:66px;border:1px solid #ccc;}
.alignleft{background:url("{{static_url('static/images/align_left.png')}}") no-repeat;padding:0 6px 0 25px}
.aligncenter{background:url("{{static_url('static/images/align_center.png')}}") no-repeat;padding:0 6px 0 25px}
.alignright{background:url("{{static_url('static/images/align_right.png')}}") no-repeat;padding:0 6px 0 25px}
</style>
<div id="thumblst" class="item item-thumb-list">
	{% if arrPhotos is defined  and arrPhotos%}
    {% for item in arrPhotos %}
    <div class="thumblst">
      <div class="details">
        <p>图片描述（30字以内）</p>
        <textarea name="photodesc[]" maxlength="30">{{item['title']}}</textarea>
        <input type="hidden" name="seqid[]" value="{{item['seqid']}}" >
        <br>
        <br>
        图片位置<br>
        <a onclick="javascript:removePhoto(this, '{{item['seqid']}}');return false;" class="minisubmit rr j a_remove_pic" name="rm_p_{{item['seqid']}}" ajaxurl="{{url('home/images/delete')}}" imgid="{{item['id']}}">删除</a>
        <label>
         {% if item['align'] == 'L' %}
         <input type="radio" name="layout_{{item['seqid']}}"  checked  value="L" >
         {% else %}
         <input type="radio" name="layout_{{item['seqid']}}"   value="L" >
         {% endif %}
          <span class="alignleft">居左</span></label>
        <label>
          {% if item['align'] == 'C' %}
          <input type="radio" name="layout_{{item['seqid']}}" checked value="C" >
           {% else %}
          <input type="radio" name="layout_{{item['seqid']}}" value="C" >
          {% endif %}
          <span class="aligncenter">居中</span></label>
        <label>
          {% if item['align'] == 'R' %}
          <input type="radio" name="layout_{{item['seqid']}}" checked value="R" >
          {% else %}
          <input type="radio" name="layout_{{item['seqid']}}" value="R" >
          {% endif %}
          <span class="alignright">居右</span></label>
      </div>
      <div class="thumb">
        <div class="pl">[图片{{item['seqid']}}]</div>
        <img src="{{item['simg']}}">
      </div>
      	<div class="clear"></div>
    </div>
    {% endfor %}
	{% endif %}
</div>
<div id="videosbar"  class="item item-thumb-list">
	{% if arrVideos is defined %}
	<notempty name="arrPhotos">
    <foreach name="arrVideos" item="item">
    <div class="thumblst">
    <div class="details">
    <p>视频标题（30字以内）</p>
    <textarea name="video_{$item[seqid]}_title" maxlength="30">{$item[title]}</textarea>
    <input type="hidden" value="{$item[seqid]}" name="videoseqid[]">
    <br>
    <br>
    视频网址：<br>
    <a onclick="javascript:removeVideo(this, '{$item[seqid]}');return false;" class="minisubmit rr j a_remove_pic" name="rm_p_1" ajaxurl="{:U('home/imagesvideos/delete')}" videoid="{$item[videoid]}">删除</a>
    <p>{$item[url]}</p>
    </div>
    <div class="thumb">
    <div class="pl">[视频{$item[seqid]}]</div>
    <img src="{$item[imgurl]}"> </div>
    <div class="clear"></div>
    </div>
    </foreach>
    {% endif %}
</div>
<script type="text/javascript" src="{{static_url('static/js/lib/ajaxfileupload.js')}}"></script>
<script type="text/javascript" src="{{static_url('static/js/lib/IKEditor.js')}}"></script>
<!--//IKEDITOR编辑器-->
